<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTablePro extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('projects', function (Blueprint $table) {
            $table->increments('pid');//主键
            $table->integer('uid');//用户uid
            $table->string('name',10);//用户名
            $table->integer('money');//贷款金额
            $table->string('mobile',11);//手机号
            $table->string('title',50);//项目名称
            $table->tinyinteger('rate');//年利率(百分比)
            $table->tinyinteger('hrange');//还款期限,月为单位
            $table->tinyinteger('status');//状态
            $table->integer('recive');//已招标金额
            $table->integer('pubtime');//项目发布时间
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('projects');
    }
}
